import re

w = open('init2.txt', 'r')

t = w.read()

w.close()


def init_macro():
    w = open('init_trig.txt', 'w')
    for x in range(2, 7):
        p = re.compile(r'Player 1')
        r = p.sub('Player ' + str(x), t)
        p = re.compile(r'"P1"')
        r = p.sub('"P' + str(x) + '"', r)
        p = re.compile(r'(?<=Nest", Exactly, )6')
        r = p.sub(str(7 - x), r)
        print>>w, r
    w.close()

        
